package nativejpa.test.jpa.hsql;

import javax.persistence.Table;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.Id;

/**
 * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
 * @create 2009-3-13 14:53:31
 */
@Entity
@Table(name = "Product")
public class Product {
    @Id
    @Column(name = "ID")
    private int Id;

    @Column(name = "Name")
    private String name;

    @Column(name = "Price")
    private double price;

    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}